﻿namespace LightCAD.Core
{
    public class IdCreator
    {
        public int ObjectIdIndex { get; internal set; } = 1000000;
        public int GetObjectId()
        {
            return ++ObjectIdIndex;
        }
        public void RestObjectIdMax(int objectId)
        {
            if(objectId> ObjectIdIndex)
            {
                ObjectIdIndex = objectId;
            }
        }
    }
}
